package dao.impl;

import dao.BaseDao.BaseDao;
import javabean.Food;

import java.util.List;

public class FoodDaoImpl extends BaseDao implements FoodDao {
    @Override
    public int addFood(Food food) {
        String sql = "insert into t_food(`name`,`image`,`cpp`,`ifPreferential`,`ifOnSale`,`ifRecommend`,`introduction`,`categoryId`,`level`) values(?,?,?,?,?,?,?,?,?)";
        return 0;
    }

    @Override
    public int deleteFoodById(Integer id) {
        return 0;
    }

    @Override
    public int updateFood(Food food) {
        return 0;
    }

    @Override
    public Food queryFoodById(Integer id) {
        return null;
    }

    @Override
    public List<Food> queryFoods() {
        return null;
    }

    @Override
    public Integer queryForPageTotalCount() {
        return null;
    }

    @Override
    public List<Food> queryForItems(int begin, int pageSize) {
        return null;
    }

    @Override
    public Integer queryForFoodTotalCountByKeyword(int keyword) {
        return null;
    }

    @Override
    public List<Food> queryForItemsByKeyword(int kewyword, int begin, int pagerSize) {
        return null;
    }
}
